<template>
  <div class="page-wrapper">
    <PageTools :data="list">
      <!-- 用一个对象将子组件传出的数据接收 -->
      <template #before="obj">
        {{ obj.row }} {{obj.a}} {{obj.b}} {{obj.ccc}}
      </template>
    </PageTools>
  </div>
</template>

<script>
import PageTools from '@/components/PageTools'
export default {
  components: {
    PageTools
  },
  data() {
    return {
      list: [
        { id: 1, name: 'tom', age: 13 },
        { id: 2, name: 'rose', age: 14 },
        { id: 3, name: 'jerry', age: 15 }
      ]
    }
  }
}
</script>

<style>

</style>
